%table.payment{data: { outgoing_payment_third: true }}
  %thead
    %tr
      %th{colspan: 5}= third.full_name
    - if third.unbalanced?
      %tr.warning#unbalanced-entity
        %th{colspan: 4}= :third_is_unbalanced.tl
        %th
          = third.balance
          = " &ndash; ".html_safe
          = third.supplier_accounting_balance
  %tbody
    = render partial: 'purchase_affair', collection: @affairs.where(supplier: third), locals: {f:f}
  %tfoot
    %tr.total
      %td{colspan: 3}= :total.tl
      %td{data: {outgoing_payment_total: true}}= 0.0
      %td= @currency
